package dao;

import domain.Student;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 于金鹏
 * @Date 2024/12/16 13:19
 * @Package StudentCheckSystem
 *
 * 学生数据访问接口
 */
public interface StudentDao {
    // 查询学生列表
    List<Student> getAllStudents(Student student) throws SQLException;

    // 分页
    List<Student> page(Student student, int pageNum, int pageSize) throws SQLException;

    // 查询学生总数
    int count(Student student) throws SQLException;


    // 新增学生
    int addStudent(Student student) throws SQLException;

    // 修改学生信息
    int updateStudent(Student student) throws SQLException;

    // 删除学生
    int deleteStudent(int id) throws SQLException;

    Student getStudentById(int id) throws SQLException;


}
